import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {
  money:string
}
PayHead.defaultProps = {
} as Partial<IProps>;
function PayHead(props: IProps) {
    const { className, style, money } = props;
    const localClassName = useClassName('PayHead', className);
    return (
        <RootView className={localClassName} style={style}>
            <View>
                <Text className="unit">￥</Text>
                <Text className="value">{money}</Text>
            </View>
            <View className="subtitle">支付金额</View>
        </RootView>
    );
}
export default React.memo(PayHead as FC<IProps>);
const RootView = styled(View)`
    &.PayHead {
      margin: 0 auto;
      margin-top: 80px;
      width: 686px;
      text-align: center;
        .unit {
            font-size: 32px;
            font-weight: bold;
            color: #333333;
        }
        .value {
            font-size: 56px;
            font-weight: bold;
            color: #333333;
        }
        .subtitle {
            font-size: 32px;
            font-weight: 400;
            color: #808a9d;
        }
    }
`;
